<?php 

class HTMLTemplate{
	public function printHeader(){
		
		?>
		<html manifest="demo.appcache">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
				<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
				<title>nothing...</title>
				<?php loadCSSFile(WEBSITE_URL."css/base.css");?>
				<?php loadCSSFile(WEBSITE_URL."css/layout.css");?>
				<?php loadCSSFile(WEBSITE_URL."css/skeleton.css");?>
				<?php include_once(FS_PATH."css/style.php"); ?>
				<?php
					if(checkCurrentPath('/index.php/')){
						loadCSSFile(WEBSITE_URL."css/nivo-slider.css");
						loadCSSFile(WEBSITE_URL."css/nivo-default.css");
					}
					loadJSFile(WEBSITE_URL."js/jquery.min.js");
					//loadJSFile(FS_PATH."js/jquery-ui.min.js"); 
					loadJSFile(WEBSITE_URL."js/jquery.scrollTo-min.js");
					loadJSFile(WEBSITE_URL."js/tabs.js"); 
					loadJSFile(WEBSITE_URL."js/main.php"); 
					
					
				?>
			</head>
			<body>
			<?php
						
			if(!checkCurrentPath('/index.php/')){
				?>	
				<div class="container" style="overflow:hidden;">
				<?php
				$this->printHeaderBanner();
				$this->printHeaderMenu();
			}
	}
	public function printHeaderBanner(){
					
		?>
		<div class="sixteen columns" style="position: relative; height: 40px; border: 1px solid #FFFFFF; z-index:99">
			<div  id="main_headerbanner">
				This is header banner...
			</div>
		</div>
		<?php
	}
	public function printHeaderMenu(){
		?>
		<div class="sixteen columns" style="position: relative;height: 60px; z-index:99">
		    <!-- menu area-->
		    <div class="HeaderMenu">
		    	<ul class="HeaderMenu_Leve1">
			    	<li class="HeaderMenu_Level1">
			    		<a href="javascript:loadPage('news.php')">
			    			<div class="headerMenu_Level1Item">
			    				Home	
			    			</div>
			    		</a>
			    	</li>
			    	<li class="HeaderMenu_Level1">
			    		<a href="javascript:loadPage('productlist.php')">
			    			<div class="headerMenu_Level1Item">
			    				Product List	
			    			</div>
			    		</a>
			    	</li>
			    	<li class="HeaderMenu_Level1">
			    		<a href="<?php echo WEBSITE_URL; ?>/education.php">
			    			<div class="headerMenu_Level1Item">
			    				Education	
			    			</div>
			    		</a>
			    	</li>
			    	<li class="HeaderMenu_Level1">
			    		<a href="<?php echo WEBSITE_URL; ?>/aboutus.php">
			    			<div class="headerMenu_Level1Item">
			    				About Us	
			    			</div>
			    		</a>
			    	</li>
			    </ul>
		    </div>
		    
		</div>
		<?php		
	}
	
	public function printFooter(){
		$detechBrowser=new DetechBrowser();
		$detechBrowser->init();
			if(!checkCurrentPath('/index.php/')){
			?>	
			</div>
			<?php }else{
					if(checkCurrentPath('/index.php/')){
						//echo $detechBrowser->ua;
						/*echo $str=strpos($detechBrowser->ua, 'MSIE');
						
						if(trim($str)==''){
							loadJSFile(WEBSITE_URL."js/jquery.nivo.slider.FirefoxEdition.js");
						}else if($str>=0){
							loadJSFile(WEBSITE_URL."js/jquery.nivo.slider.IEedition.js");
						}*/
						if($detechBrowser->msie){
							loadJSFile(WEBSITE_URL."js/jquery.nivo.slider.IEedition.js");
						}else{
							loadJSFile(WEBSITE_URL."js/jquery.nivo.slider.FirefoxEdition.js");
						}
						
					}else if(checkCurrentPath('/main.php/')){
						loadJSFile(WEBSITE_URL."js/home.js");
					} 
				
			} ?>
			</body>
		</html>
		<?php
	}
}

